<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生所有成绩</title>
    <style>
        .table{width: 100%;border: 1px solid silver;text-align: center}
        .table td,.table th{padding: 5px;border: 1px solid silver;font-size: 20px;text-align: center;}
    </style>
</head>
<body>
    <table class="table" cellpadding="0" cellspacing="0">
        <tr>
            <th>学号</th>
            <th>姓名</th>
            <?php 
            $quiz_num = count($quiz);
            for($i = 0;$i<$quiz_num;$i++){
            echo "<th>".$quiz[$i]["qus_name"]."<br/>".$quiz[$i]["qus_create_time"]."</th>";
        }
        ?>
    </tr>
    <?php
    $stu_num = count($student);
    for($i = 0;$i<$stu_num;$i++){
        $html = "<tr>";
        $html .= "<td>".$student[$i]["stu_number"]."</td>";
        $html .= "<td>".$student[$i]["stu_name"]."</td>";
        $result = count($student[$i]['allResult']);
        for($j = 0;$j<$result;$j++){
            $html .= "<td>".$student[$i]["allResult"][$j]["stu_score"]."</td>";
        }
        $html .="</tr>";
        echo $html;
    }
?>
</table>
</body>
</html>